#include <iostream>
#include <stdio.h>
using namespace std;

class A
{
 public:
	A(int a,int b,int c)
	{
		this->a=a;
		this->b=b;
		this->c=c;
	}
	A(int a,int b)
	{
		this->a=a;
		this->b=b;
		//试图将100赋值给c，这里产生了匿名对象匿名对象里的c确实是100，但她和t1没有任何关系
		A(a,b,100);
	}   
private:
	int a;
	int b;
	int c;
public:
	int getc() const {return c;}
};

int main()
{
	A t1(1,2);
	printf("c: %d\n",t1.getc());//c。
	return 0;
}
